﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace Venta
{
    public partial class Form1 : Form
    {
       
        public Form1()
        {
            InitializeComponent();
            
        }

        private void Form1_Load(object sender, EventArgs e)
        {

          //  Conectar();

        }

        //private void Conectar()
        //{
        //    try
        //    {
        //        conexio.ConnectionString = "Server=instance29069.db.xeround.com;Port=8520;Database=tienda;Uid=mercedes; Pwd=mercedes;";
        //        conexio.Open();
        //       // MessageBox.Show("Se realizo");
        //    }
        //    catch
        //    {
        //       // MessageBox.Show("No se realizo");
        //    }
        //}

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        //private void button1_Click(object sender, EventArgs e)
        //{
            
        //}

        private void button1_Click_1(object sender, EventArgs e)
        {
            if (comboBox1.Text == "venta")
            {

                VENTA sin = new VENTA(comboBox1.Text);
                sin.Show();
                this.Hide();
            }
            if (comboBox1.Text == "producto")
            {

                producto sin = new producto(comboBox1.Text);
                sin.Show();
                this.Hide();
            }
        }

      
    }
}
       

        

    